/**
 * 
 */
package tijava.concurrency;

/**
 * @author nathan
 * 
 */
public class TestSync {
	synchronized public void f() {
		System.out.print("fff");
		g();
	}

	synchronized public void g() {
		System.out.print("ggg");
	}

	public static void main(String[] args) {
		TestSync ts = new TestSync();
		ts.f();
	}
}
